<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
 <script>
   //实例化构造函数生成对象
   const person=new Object()
   person.age=18
   person.sleep=function(){}
   console.log(person);
   //属性的简洁表示法
   const people={age:19}
   console.log(people);
   //方法的简洁表示法
   const dog={
     eat(){}
   }
   console.log(dog);
 </script> 
</body>
</html>